<?php
require_once 'init.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css">
<title>PhpMongo</title>
</head>
<body>
<div class="warp_left">
<?php
require_once 'left.php';
?>	

</div>
<div class="warp_right">
	<p class="message"><label style="font-size:20px;"><?php echo $_GET['message'];?></label><br/>
						If your browser not redirect after  <span style="color:red;" id='s'>2</span> seconds, 
						Please <a href="<?php echo urldecode($_GET['link']);?>" class="go_link" style="text-decoration: underline; ">Click here back</a>
	</p>					
</div>

<script type="text/javascript">

	function Redirect(){
		window.location = "<?php echo urldecode($_GET['link']);?>";
	}
	
	var handler;
	var seconds = 2;//时间,秒
	function timer() {
		seconds -= 1;
		document.getElementById('s').innerHTML = seconds;
		if (seconds == 0){
			Redirect();
			return true;
		} 
	}
	handler = setInterval(timer,1000);	

</script>
</body>
</html>